#/bin/bash
REPO="/home/wuhao/work/spring_cloud/day2/carstore-config-repo"
LOCAL="/home/wuhao/work/SpringCloudTest/carstore"
cp $LOCAL/carstoreserver/src/main/resources/application.yml $REPO/carstore-service.yml
cp $LOCAL/eurekaserver/src/main/resources/application.yml $REPO/eureka-service.yml
cp $LOCAL/ui/src/main/resources/application.yml $REPO/ui-service.yml
cp $LOCAL/userserver/src/main/resources/application.yml $REPO/user-service.yml
cp $LOCAL/orderserver/src/main/resources/application.yml $REPO/order-service.yml
cp $LOCAL/gateway/src/main/resources/application.yml $REPO/gateway.yml

rm $LOCAL/carstoreserver/src/main/resources/application.yml
rm $LOCAL/eurekaserver/src/main/resources/application.yml 
rm $LOCAL/ui/src/main/resources/application.yml 
rm $LOCAL/userserver/src/main/resources/application.yml 
rm $LOCAL/orderserver/src/main/resources/application.yml
rm $LOCAL/gateway/src/main/resources/application.yml 
